'''
Created on Oct 6, 2013

@author: boss
'''

from google.appengine.ext import db

class User(db.Model):

    facebookId = db.IntegerProperty()
    name = db.StringProperty()
    accessToken = db.StringProperty()
    accessTokenFanPage = db.StringProperty()
    isAdmin = db.BooleanProperty()
    facebookFanPageName = db.StringProperty()
    accessTokenFanPage = db.StringProperty()
    facebookFanPageId = db.IntegerProperty()

class Match(db.Model):
    user= db.ReferenceProperty(User,collection_name='matches')
    description = db.StringProperty()
    reward = db.StringProperty()